<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: cv::SVD Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../df/df7/classcv_1_1SVD.html">SVD</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="../../df/d2b/classcv_1_1SVD-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::SVD Class Reference<div class="ingroups"><a class="el" href="../../d0/de1/group__core.html">Core functionality</a> &raquo; <a class="el" href="../../d2/de8/group__core__array.html">Operations on arrays</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Singular Value Decomposition.  
 <a href="../../df/df7/classcv_1_1SVD.html#details">More...</a></p>

<p><code>#include &lt;opencv2/core.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a4700f5207e66cdd9924bf64e34911832"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df7/classcv_1_1SVD.html#a4700f5207e66cdd9924bf64e34911832">Flags</a> { <br />
&#160;&#160;<a class="el" href="../../df/df7/classcv_1_1SVD.html#a4700f5207e66cdd9924bf64e34911832afb6aab7965c8f601696b10fa109e2789">MODIFY_A</a> = 1, 
<br />
&#160;&#160;<a class="el" href="../../df/df7/classcv_1_1SVD.html#a4700f5207e66cdd9924bf64e34911832a7c0ed04881ebe47a7efbd21f165ab295">NO_UV</a> = 2, 
<br />
&#160;&#160;<a class="el" href="../../df/df7/classcv_1_1SVD.html#a4700f5207e66cdd9924bf64e34911832a312212af9fa27d5560981e24f845434a">FULL_UV</a> = 4
<br />
 }</td></tr>
<tr class="separator:a4700f5207e66cdd9924bf64e34911832"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3830f50d56ac2ff7b979e6f7f8991e36"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df7/classcv_1_1SVD.html#a3830f50d56ac2ff7b979e6f7f8991e36">SVD</a> ()</td></tr>
<tr class="memdesc:a3830f50d56ac2ff7b979e6f7f8991e36"><td class="mdescLeft">&#160;</td><td class="mdescRight">the default constructor  <a href="#a3830f50d56ac2ff7b979e6f7f8991e36">More...</a><br /></td></tr>
<tr class="separator:a3830f50d56ac2ff7b979e6f7f8991e36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54cb96aef54978a3617cb2a2169b689a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df7/classcv_1_1SVD.html#a54cb96aef54978a3617cb2a2169b689a">SVD</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, int flags=0)</td></tr>
<tr class="separator:a54cb96aef54978a3617cb2a2169b689a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d50bc1c641fdeff7543197d5a4f3b3d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df7/classcv_1_1SVD.html#a9d50bc1c641fdeff7543197d5a4f3b3d">backSubst</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> rhs, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst) const</td></tr>
<tr class="memdesc:a9d50bc1c641fdeff7543197d5a4f3b3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">performs a singular value back substitution.  <a href="#a9d50bc1c641fdeff7543197d5a4f3b3d">More...</a><br /></td></tr>
<tr class="separator:a9d50bc1c641fdeff7543197d5a4f3b3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9ade269f8234b171413e4ff639a3128"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../df/df7/classcv_1_1SVD.html">SVD</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df7/classcv_1_1SVD.html#ad9ade269f8234b171413e4ff639a3128">operator()</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, int flags=0)</td></tr>
<tr class="memdesc:ad9ade269f8234b171413e4ff639a3128"><td class="mdescLeft">&#160;</td><td class="mdescRight">the operator that performs <a class="el" href="../../df/df7/classcv_1_1SVD.html" title="Singular Value Decomposition. ">SVD</a>. The previously allocated u, w and vt are released.  <a href="#ad9ade269f8234b171413e4ff639a3128">More...</a><br /></td></tr>
<tr class="separator:ad9ade269f8234b171413e4ff639a3128"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a7c28935c9999977dbe34285d13d43190"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df7/classcv_1_1SVD.html#a7c28935c9999977dbe34285d13d43190">backSubst</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> <a class="el" href="../../df/df7/classcv_1_1SVD.html#a38a2acb70d78dc8bd3d4f4dfe36791f5">w</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> <a class="el" href="../../df/df7/classcv_1_1SVD.html#ab528f446054b6605a7ecc7a36fb5848f">u</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> <a class="el" href="../../df/df7/classcv_1_1SVD.html#ab1971bad7d11ee9be67e23651fc0241c">vt</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> rhs, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:a7c28935c9999977dbe34285d13d43190"><td class="mdescLeft">&#160;</td><td class="mdescRight">performs back substitution  <a href="#a7c28935c9999977dbe34285d13d43190">More...</a><br /></td></tr>
<tr class="separator:a7c28935c9999977dbe34285d13d43190"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae398d073d71188ed3e18ef27801b43b8"><td class="memTemplParams" colspan="2">template&lt;typename _Tp , int m, int n, int nm, int nb&gt; </td></tr>
<tr class="memitem:ae398d073d71188ed3e18ef27801b43b8"><td class="memTemplItemLeft" align="right" valign="top">static void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../df/df7/classcv_1_1SVD.html#ae398d073d71188ed3e18ef27801b43b8">backSubst</a> (const <a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, nm, 1 &gt; &amp;<a class="el" href="../../df/df7/classcv_1_1SVD.html#a38a2acb70d78dc8bd3d4f4dfe36791f5">w</a>, const <a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, m, nm &gt; &amp;<a class="el" href="../../df/df7/classcv_1_1SVD.html#ab528f446054b6605a7ecc7a36fb5848f">u</a>, const <a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, n, nm &gt; &amp;<a class="el" href="../../df/df7/classcv_1_1SVD.html#ab1971bad7d11ee9be67e23651fc0241c">vt</a>, const <a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, m, nb &gt; &amp;rhs, <a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, n, nb &gt; &amp;dst)</td></tr>
<tr class="separator:ae398d073d71188ed3e18ef27801b43b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76f0b2044df458160292045a3d3714c6"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df7/classcv_1_1SVD.html#a76f0b2044df458160292045a3d3714c6">compute</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> <a class="el" href="../../df/df7/classcv_1_1SVD.html#a38a2acb70d78dc8bd3d4f4dfe36791f5">w</a>, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> <a class="el" href="../../df/df7/classcv_1_1SVD.html#ab528f446054b6605a7ecc7a36fb5848f">u</a>, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> <a class="el" href="../../df/df7/classcv_1_1SVD.html#ab1971bad7d11ee9be67e23651fc0241c">vt</a>, int flags=0)</td></tr>
<tr class="memdesc:a76f0b2044df458160292045a3d3714c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">decomposes matrix and stores the results to user-provided matrices  <a href="#a76f0b2044df458160292045a3d3714c6">More...</a><br /></td></tr>
<tr class="separator:a76f0b2044df458160292045a3d3714c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac85e0fc50c1e3c9716bb35dd7b9bcd2"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df7/classcv_1_1SVD.html#aac85e0fc50c1e3c9716bb35dd7b9bcd2">compute</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> <a class="el" href="../../df/df7/classcv_1_1SVD.html#a38a2acb70d78dc8bd3d4f4dfe36791f5">w</a>, int flags=0)</td></tr>
<tr class="separator:aac85e0fc50c1e3c9716bb35dd7b9bcd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75e78203f975321abae4127dc4ee10df"><td class="memTemplParams" colspan="2">template&lt;typename _Tp , int m, int n, int nm&gt; </td></tr>
<tr class="memitem:a75e78203f975321abae4127dc4ee10df"><td class="memTemplItemLeft" align="right" valign="top">static void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../df/df7/classcv_1_1SVD.html#a75e78203f975321abae4127dc4ee10df">compute</a> (const <a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, m, n &gt; &amp;a, <a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, nm, 1 &gt; &amp;<a class="el" href="../../df/df7/classcv_1_1SVD.html#a38a2acb70d78dc8bd3d4f4dfe36791f5">w</a>, <a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, m, nm &gt; &amp;<a class="el" href="../../df/df7/classcv_1_1SVD.html#ab528f446054b6605a7ecc7a36fb5848f">u</a>, <a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, n, nm &gt; &amp;<a class="el" href="../../df/df7/classcv_1_1SVD.html#ab1971bad7d11ee9be67e23651fc0241c">vt</a>)</td></tr>
<tr class="separator:a75e78203f975321abae4127dc4ee10df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a8081ff2e54fc43a7a844c2df58476c"><td class="memTemplParams" colspan="2">template&lt;typename _Tp , int m, int n, int nm&gt; </td></tr>
<tr class="memitem:a6a8081ff2e54fc43a7a844c2df58476c"><td class="memTemplItemLeft" align="right" valign="top">static void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../df/df7/classcv_1_1SVD.html#a6a8081ff2e54fc43a7a844c2df58476c">compute</a> (const <a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, m, n &gt; &amp;a, <a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, nm, 1 &gt; &amp;<a class="el" href="../../df/df7/classcv_1_1SVD.html#a38a2acb70d78dc8bd3d4f4dfe36791f5">w</a>)</td></tr>
<tr class="separator:a6a8081ff2e54fc43a7a844c2df58476c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab255cd24a882ab993fb2f7377ef2774a"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df7/classcv_1_1SVD.html#ab255cd24a882ab993fb2f7377ef2774a">solveZ</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:ab255cd24a882ab993fb2f7377ef2774a"><td class="mdescLeft">&#160;</td><td class="mdescRight">solves an under-determined singular linear system  <a href="#ab255cd24a882ab993fb2f7377ef2774a">More...</a><br /></td></tr>
<tr class="separator:ab255cd24a882ab993fb2f7377ef2774a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ab528f446054b6605a7ecc7a36fb5848f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df7/classcv_1_1SVD.html#ab528f446054b6605a7ecc7a36fb5848f">u</a></td></tr>
<tr class="separator:ab528f446054b6605a7ecc7a36fb5848f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1971bad7d11ee9be67e23651fc0241c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df7/classcv_1_1SVD.html#ab1971bad7d11ee9be67e23651fc0241c">vt</a></td></tr>
<tr class="separator:ab1971bad7d11ee9be67e23651fc0241c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38a2acb70d78dc8bd3d4f4dfe36791f5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/df7/classcv_1_1SVD.html#a38a2acb70d78dc8bd3d4f4dfe36791f5">w</a></td></tr>
<tr class="separator:a38a2acb70d78dc8bd3d4f4dfe36791f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Singular Value Decomposition. </p>
<p>Class for computing Singular Value Decomposition of a floating-point matrix. The Singular Value Decomposition is used to solve least-square problems, under-determined linear systems, invert matrices, compute condition numbers, and so on.</p>
<p>If you want to compute a condition number of a matrix or an absolute value of its determinant, you do not need <code>u</code> and <code>vt</code>. You can pass flags=<a class="el" href="../../df/df7/classcv_1_1SVD.html#a4700f5207e66cdd9924bf64e34911832a7c0ed04881ebe47a7efbd21f165ab295">SVD::NO_UV</a>|... . Another flag <a class="el" href="../../df/df7/classcv_1_1SVD.html#a4700f5207e66cdd9924bf64e34911832a312212af9fa27d5560981e24f845434a">SVD::FULL_UV</a> indicates that full-size u and vt must be computed, which is not necessary most of the time.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/de8/group__core__array.html#gad278044679d4ecf20f7622cc151aaaa2" title="Finds the inverse or pseudo-inverse of a matrix. ">invert</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga12b43690dbd31fed96f213eefead2373" title="Solves one or more linear systems or least-squares problems. ">solve</a>, <a class="el" href="../../d2/de8/group__core__array.html#ga9fa0d58657f60eaa6c71f6fbb40456e3" title="Calculates eigenvalues and eigenvectors of a symmetric matrix. ">eigen</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga06b8ec936c3cbc9502d76c7818053b41">determinant</a> </dd></dl>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a4700f5207e66cdd9924bf64e34911832"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4700f5207e66cdd9924bf64e34911832">&#9670;&nbsp;</a></span>Flags</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../df/df7/classcv_1_1SVD.html#a4700f5207e66cdd9924bf64e34911832">cv::SVD::Flags</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a4700f5207e66cdd9924bf64e34911832afb6aab7965c8f601696b10fa109e2789"></a>MODIFY_A&#160;</td><td class="fielddoc"><p>allow the algorithm to modify the decomposed matrix; it can save space and speed up processing. currently ignored. </p>
</td></tr>
<tr><td class="fieldname"><a id="a4700f5207e66cdd9924bf64e34911832a7c0ed04881ebe47a7efbd21f165ab295"></a>NO_UV&#160;</td><td class="fielddoc"><p>indicates that only a vector of singular values <code>w</code> is to be processed, while u and vt will be set to empty matrices </p>
</td></tr>
<tr><td class="fieldname"><a id="a4700f5207e66cdd9924bf64e34911832a312212af9fa27d5560981e24f845434a"></a>FULL_UV&#160;</td><td class="fielddoc"><p>when the matrix is not square, by default the algorithm produces u and vt matrices of sufficiently large size for the further A reconstruction; if, however, FULL_UV flag is specified, u and vt will be full-size square orthogonal matrices. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a3830f50d56ac2ff7b979e6f7f8991e36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3830f50d56ac2ff7b979e6f7f8991e36">&#9670;&nbsp;</a></span>SVD() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::SVD::SVD </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>the default constructor </p>
<p>initializes an empty <a class="el" href="../../df/df7/classcv_1_1SVD.html" title="Singular Value Decomposition. ">SVD</a> structure </p>

</div>
</div>
<a id="a54cb96aef54978a3617cb2a2169b689a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54cb96aef54978a3617cb2a2169b689a">&#9670;&nbsp;</a></span>SVD() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::SVD::SVD </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>flags</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. initializes an empty <a class="el" href="../../df/df7/classcv_1_1SVD.html" title="Singular Value Decomposition. ">SVD</a> structure and then calls SVD::operator() </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>decomposed matrix. The depth has to be CV_32F or CV_64F. </td></tr>
    <tr><td class="paramname">flags</td><td>operation flags (<a class="el" href="../../df/df7/classcv_1_1SVD.html#a4700f5207e66cdd9924bf64e34911832">SVD::Flags</a>) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a7c28935c9999977dbe34285d13d43190"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c28935c9999977dbe34285d13d43190">&#9670;&nbsp;</a></span>backSubst() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void cv::SVD::backSubst </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>u</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>vt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>rhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a>&#160;</td>
          <td class="paramname"><em>dst</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>performs back substitution </p>

</div>
</div>
<a id="a9d50bc1c641fdeff7543197d5a4f3b3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d50bc1c641fdeff7543197d5a4f3b3d">&#9670;&nbsp;</a></span>backSubst() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::SVD::backSubst </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>rhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a>&#160;</td>
          <td class="paramname"><em>dst</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>performs a singular value back substitution. </p>
<p>The method calculates a back substitution for the specified right-hand side:</p>
<p class="formulaDsp">
\[\texttt{x} = \texttt{vt} ^T \cdot diag( \texttt{w} )^{-1} \cdot \texttt{u} ^T \cdot \texttt{rhs} \sim \texttt{A} ^{-1} \cdot \texttt{rhs}\]
</p>
<p>Using this technique you can either get a very accurate solution of the convenient linear system, or the best (in the least-squares terms) pseudo-solution of an overdetermined linear system.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td>right-hand side of a linear system (u*w*v')*dst = rhs to be solved, where A has been previously decomposed.</td></tr>
    <tr><td class="paramname">dst</td><td>found solution of the system.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>Explicit <a class="el" href="../../df/df7/classcv_1_1SVD.html" title="Singular Value Decomposition. ">SVD</a> with the further back substitution only makes sense if you need to solve many linear systems with the same left-hand side (for example, src ). If all you need is to solve a single system (possibly with multiple rhs immediately available), simply call solve add pass <a class="el" href="../../d2/de8/group__core__array.html#ggaaf9ea5dcc392d5ae04eacb9920b9674ca523b676c90c7a1d2841b1267ba9ba614">DECOMP_SVD</a> there. It does absolutely the same thing. </dd></dl>

</div>
</div>
<a id="ae398d073d71188ed3e18ef27801b43b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae398d073d71188ed3e18ef27801b43b8">&#9670;&nbsp;</a></span>backSubst() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Tp , int m, int n, int nm, int nb&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void cv::SVD::backSubst </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, nm, 1 &gt; &amp;&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, m, nm &gt; &amp;&#160;</td>
          <td class="paramname"><em>u</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, n, nm &gt; &amp;&#160;</td>
          <td class="paramname"><em>vt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, m, nb &gt; &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, n, nb &gt; &amp;&#160;</td>
          <td class="paramname"><em>dst</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="todo"><dt><b><a class="el" href="../../dd/da0/todo.html#_todo000010">Todo:</a></b></dt><dd>document </dd></dl>

</div>
</div>
<a id="a76f0b2044df458160292045a3d3714c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76f0b2044df458160292045a3d3714c6">&#9670;&nbsp;</a></span>compute() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void cv::SVD::compute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a>&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a>&#160;</td>
          <td class="paramname"><em>u</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a>&#160;</td>
          <td class="paramname"><em>vt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>flags</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>decomposes matrix and stores the results to user-provided matrices </p>
<p>The methods/functions perform <a class="el" href="../../df/df7/classcv_1_1SVD.html" title="Singular Value Decomposition. ">SVD</a> of matrix. Unlike <a class="el" href="../../df/df7/classcv_1_1SVD.html#a3830f50d56ac2ff7b979e6f7f8991e36" title="the default constructor ">SVD::SVD</a> constructor and SVD::operator(), they store the results to the user-provided matrices:</p>
<div class="fragment"><div class="line">Mat A, <a class="code" href="../../df/df7/classcv_1_1SVD.html#a38a2acb70d78dc8bd3d4f4dfe36791f5">w</a>, <a class="code" href="../../df/df7/classcv_1_1SVD.html#ab528f446054b6605a7ecc7a36fb5848f">u</a>, <a class="code" href="../../df/df7/classcv_1_1SVD.html#ab1971bad7d11ee9be67e23651fc0241c">vt</a>;</div><div class="line"><a class="code" href="../../df/df7/classcv_1_1SVD.html#a76f0b2044df458160292045a3d3714c6">SVD::compute</a>(A, w, u, vt);</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>decomposed matrix. The depth has to be CV_32F or CV_64F. </td></tr>
    <tr><td class="paramname">w</td><td>calculated singular values </td></tr>
    <tr><td class="paramname">u</td><td>calculated left singular vectors </td></tr>
    <tr><td class="paramname">vt</td><td>transposed matrix of right singular vectors </td></tr>
    <tr><td class="paramname">flags</td><td>operation flags - see <a class="el" href="../../df/df7/classcv_1_1SVD.html#a4700f5207e66cdd9924bf64e34911832">SVD::Flags</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aac85e0fc50c1e3c9716bb35dd7b9bcd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac85e0fc50c1e3c9716bb35dd7b9bcd2">&#9670;&nbsp;</a></span>compute() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void cv::SVD::compute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a>&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>flags</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. computes singular values of a matrix </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>decomposed matrix. The depth has to be CV_32F or CV_64F. </td></tr>
    <tr><td class="paramname">w</td><td>calculated singular values </td></tr>
    <tr><td class="paramname">flags</td><td>operation flags - see <a class="el" href="../../df/df7/classcv_1_1SVD.html#a4700f5207e66cdd9924bf64e34911832">SVD::Flags</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a75e78203f975321abae4127dc4ee10df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a75e78203f975321abae4127dc4ee10df">&#9670;&nbsp;</a></span>compute() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Tp , int m, int n, int nm&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void cv::SVD::compute </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, m, n &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, nm, 1 &gt; &amp;&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, m, nm &gt; &amp;&#160;</td>
          <td class="paramname"><em>u</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, n, nm &gt; &amp;&#160;</td>
          <td class="paramname"><em>vt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="todo"><dt><b><a class="el" href="../../dd/da0/todo.html#_todo000008">Todo:</a></b></dt><dd>document </dd></dl>

</div>
</div>
<a id="a6a8081ff2e54fc43a7a844c2df58476c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a8081ff2e54fc43a7a844c2df58476c">&#9670;&nbsp;</a></span>compute() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _Tp , int m, int n, int nm&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void cv::SVD::compute </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, m, n &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../de/de1/classcv_1_1Matx.html">Matx</a>&lt; _Tp, nm, 1 &gt; &amp;&#160;</td>
          <td class="paramname"><em>w</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="todo"><dt><b><a class="el" href="../../dd/da0/todo.html#_todo000009">Todo:</a></b></dt><dd>document </dd></dl>

</div>
</div>
<a id="ad9ade269f8234b171413e4ff639a3128"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9ade269f8234b171413e4ff639a3128">&#9670;&nbsp;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../df/df7/classcv_1_1SVD.html">SVD</a>&amp; cv::SVD::operator() </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>flags</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>the operator that performs <a class="el" href="../../df/df7/classcv_1_1SVD.html" title="Singular Value Decomposition. ">SVD</a>. The previously allocated u, w and vt are released. </p>
<p>The operator performs the singular value decomposition of the supplied matrix. The u,<code>vt</code> , and the vector of singular values w are stored in the structure. The same <a class="el" href="../../df/df7/classcv_1_1SVD.html" title="Singular Value Decomposition. ">SVD</a> structure can be reused many times with different matrices. Each time, if needed, the previous u,<code>vt</code> , and w are reclaimed and the new matrices are created, which is all handled by <a class="el" href="../../d3/d63/classcv_1_1Mat.html#a55ced2c8d844d683ea9a725c60037ad0" title="Allocates new array data if needed. ">Mat::create</a>. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>decomposed matrix. The depth has to be CV_32F or CV_64F. </td></tr>
    <tr><td class="paramname">flags</td><td>operation flags (<a class="el" href="../../df/df7/classcv_1_1SVD.html#a4700f5207e66cdd9924bf64e34911832">SVD::Flags</a>) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab255cd24a882ab993fb2f7377ef2774a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab255cd24a882ab993fb2f7377ef2774a">&#9670;&nbsp;</a></span>solveZ()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void cv::SVD::solveZ </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a>&#160;</td>
          <td class="paramname"><em>dst</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>solves an under-determined singular linear system </p>
<p>The method finds a unit-length solution x of a singular linear system A*x = 0. Depending on the rank of A, there can be no solutions, a single solution or an infinite number of solutions. In general, the algorithm solves the following problem: </p><p class="formulaDsp">
\[dst = \arg \min _{x: \| x \| =1} \| src \cdot x \|\]
</p>
 <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>left-hand-side matrix. </td></tr>
    <tr><td class="paramname">dst</td><td>found solution. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ab528f446054b6605a7ecc7a36fb5848f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab528f446054b6605a7ecc7a36fb5848f">&#9670;&nbsp;</a></span>u</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::SVD::u</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ab1971bad7d11ee9be67e23651fc0241c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1971bad7d11ee9be67e23651fc0241c">&#9670;&nbsp;</a></span>vt</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::SVD::vt</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a38a2acb70d78dc8bd3d4f4dfe36791f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38a2acb70d78dc8bd3d4f4dfe36791f5">&#9670;&nbsp;</a></span>w</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::SVD::w</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">core.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:43 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
